package com.ocom.common.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AreaDto implements Serializable {
    private static final long serialVersionUID = 8345562736930608969L;
    @JsonProperty("comId")
    @NotNull(message = "单位编号 不能为空")
    private Long comId;
    private Long pId;
    private Long regionId;
    private Long areaId;
    @JsonProperty("areaName")
    @Length(min = 1)
    @NotBlank(message = "区域名称 不能为空")
    private String areaName;
    private Integer size;
    private Integer page;

    private String userName;

    private Integer indoorState = 0;
    private Integer outdoorState = 0;
}
